package com.zzy.bridge;

import com.zzy.pojo.UserInfo;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author: zzy
 * @CreateTime: 2024-09-30
 * @Description: 抽象类注册登录组件
 * @Version: 1.0
 */
public class RegisterLoginComponent extends AbstractRegisterLoginComponent {

    public RegisterLoginComponent(RegisterLoginFuncInterface funcInterface) {
        super(funcInterface);
    }

    @Override
    public String login(String userName, String password) {
        return funcInterface.login(userName, password);
    }

    @Override
    public String register(UserInfo userInfo) {
        return funcInterface.register(userInfo);
    }

    @Override
    public boolean checkUserExist(String userName) {
        return funcInterface.checkUserExist(userName);
    }

    @Override
    public String login3rd(HttpServletRequest request) {
        return funcInterface.login3rd(request);
    }
}
